Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adds missing mushing of all of scenarios #4723

Merged
merged 5 commits into from
May 28, 2024

Conversation

baywet
Copy link
Member

@baywet baywet commented May 24, 2024

fixes #4714
fixes #4191

@baywet baywet requested a review from a team as a code owner May 24, 2024 17:23
@baywet baywet self-assigned this May 24, 2024
@baywet baywet enabled auto-merge May 24, 2024 17:23
@baywet
Copy link
Member Author

baywet commented May 24, 2024

@andrueastman I'm running out of time on this one but I thinks it irons out the last allOf scenarios. If you can review and test, I'd appreciate it. Otherwise I'll pick it up when I get back.

I queued a generation build for sanity.

https://microsoftgraph.visualstudio.com/Graph%20Developer%20Experiences/_build/results?buildId=150597&view=results

auto-merge was automatically disabled May 24, 2024 17:27

Pull Request is not mergeable

@baywet
Copy link
Member Author

baywet commented May 24, 2024

Generation is identical for Microsoft Graph scenarios! microsoftgraph/msgraph-sdk-dotnet#2517

@andrueastman andrueastman self-assigned this May 27, 2024
@andrueastman andrueastman force-pushed the bugfix/missing-mushing branch from 79048dc to a6feb0e Compare May 28, 2024 12:38
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
63.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@andrueastman andrueastman enabled auto-merge May 28, 2024 14:30
@andrueastman
Copy link
Member

Validated with https://dev.azure.com/microsoftgraph/Graph%20Developer%20Experiences/_build/results?buildId=150942&view=results . No diff with latest generation on beta/v1

@andrueastman andrueastman merged commit a1f1276 into main May 28, 2024
204 of 205 checks passed
@andrueastman andrueastman deleted the bugfix/missing-mushing branch May 28, 2024 14:39
@0xced
Copy link
Contributor

0xced commented May 29, 2024

Since commit 448af8f (which is the first of this pull request) I see a lot of warnings about discriminator not being inherited when generating my client. For example:

Discriminator SObjectRootInfo is not inherited from SObjectRootInfo.

The generated code is identical, only the warnings are new.

This problem can be reproduced by debugging the AddsDiscriminatorMappingsAllOfImplicit test and setting a breakpoint on logger.LogWarning("Discriminator {ComponentKey} is not inherited from {ClassName}.", componentKey, baseClass.Name); in the KiotaBuilder.cs file.

@andrueastman
Copy link
Member

Thanks for this @0xced. Any chance you can create a new issue with the input openApi document to help investigate?

@0xced
Copy link
Contributor

0xced commented May 30, 2024

There's already at least one in the tests where the problem can be reproduced. I edited my previous message after posting it when I figured out that running the AddsDiscriminatorMappingsAllOfImplicit test was reproducing the issue.

@andrueastman
Copy link
Member

Following this up via #4761

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
4 participants